package com.Circle;

/**
 * ClassName: Circle
 * Package:
 * Description:
 *
 * @Author 软件232班——欧阳昊淼
 * @Create 2024/9/4 14:39
 * @Version 17.0.2
 */
public class Circle {
    //radius 半径  圆的面积：S = pai * r的平方
    private double radius;
    public Circle() {
        radius = 1.0;
    }
    public Circle(double radius) {
        this.radius = radius;
    }
    public double getArea() {
        return Math.PI * radius * radius;
    }
}
